import request from '@/utils/request'

export function getPermissions(data) {
  return request({
    url: '/permissions/getPermissions',
    method: 'get',
    data
  })
}

export function getPermissionsPage(val) {
  return request({
    url: '/permissions/getPermissions?page=' + val,
    method: 'get',
    val
  })
}

export function deletePermissions(data) {
  return request({
    url: '/permissions/deletePermissions',
    method: 'post',
    data
  })
}

export function insertPermissions(data) {
  return request({
    url: '/permissions/insertPermissions',
    method: 'post',
    data
  })
}

export function updatePermissions(data) {
  return request({
    url: '/permissions/updatePermissions',
    method: 'post',
    data
  })
}
